Close connection not cursor