Better error handling when creating the connection pool