Handling of Sidekiq::Shutdown

Set the state to pending, because sidekiq requeues the current job.
Closes #340 and #430