public void close() throws SQLException {
        if (isClosed())
            return;
        try {
            this.timeoutExecutor.shutdown();
            protocol.close();
        } catch (QueryException e) {
            throw SQLExceptionMapper.get(e);
        }

    }
public void close ( ) throws SQLException { if ( isClosed ( ) ) return ; try { this . timeoutExecutor . shutdown ( ) ; protocol . close ( ) ; } catch ( QueryException e ) { throw SQLExceptionMapper . get ( e ) ; } }
close the connection.

@throws SQLException if there is a problem talking to the server.