Removed closeConnection