Handle SIGTERM and Beanstalk::NotConnected in import:worker