Closing a Statement or PreparedStatement at the same time as executing a statement could throw a strange exception.