Cannot close a remote JDBC connection that is not the current connection

Error constant SQLE_CANNOT_CLOSE_JDBC_CONNECTION
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –998
SQLSTATE WO026
Sybase error code 711
Probable cause

When attempting to close a remote JDBC connection, the specified connection must be the local connection.