Prevent the workers from dying when database is locked