Fail gracefully when failed db connect