Don't queue job if already stopped.
Add locks to prevent race condition.