event/sw: add start stop and close functions