DEBUG.P("connection.getQueryTimeoutKillsConnection()="+connection.getQueryTimeoutKillsConnection());
if (connection.getQueryTimeoutKillsConnection()) {
try {
toCancel.wasCancelled = true;
toCancel.wasCancelledByTimeout = true;
connection.realClose(false, false, true, new MySQLStatementCancelledException(Messages
.getString("Statement.ConnectionKilledDueToTimeout")));
} catch (NullPointerException npe) {
// not worth guarding against
} catch (SQLException sqlEx) {
caughtWhileCancelling = sqlEx;