added exit_on_exception configuration to worker