try just using a finally handler to close up connection