Fix leaking connections in EnginioModel

The leak was causing expotential behavior when a change to query was
applied