Return the connection to the pool after exceptions