(change:minor) Minor fixes and code clean-up.
(change:minor) Allow releaseConnection to throw exceptions