stops worker if back button is pushed