BISERVER-11004 - moving getConnection into the try block during flush, finally closing connection
Merge pull request #1239 from kurtwalker/BISERVER-11004

BISERVER-11004 - moving getConnection into the try block during flush