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