Protect worker from dying pg connection