Make sure to stop work loop when event is stopped