Connect to DB on demand, not on start.
Don't kill daemon on DB errors
Close DB connection on any error, allowing it to be re-connected on next attempt.
Re-raise whatever exception is raised by PGconn; more informative.