Prevent the workers from dying when database is locked
Merge pull request #7 from ancorgs/master

Prevent the workers from dying when database is locked