removed connection.release() call which seems to resolve an exception being thrown before