public void sendLogoutRequest(LogoutRequestDMO request, ResponseHandlerIF handler, ErrorOptionsEnum rpc, ErrorOptionsEnum dmp){
if (sessionID == null){
throw(new IllegalStateException("Attempted to send logout request but we're not logged in."));
}
else{
LogoutResponseCallback cb = new LogoutResponseCallback(request, handler, this, rpc, dmp);
checkRequestID(request);
requests.put(request.getNthRequestID(0), cb);
dmpConnection.logout(request, cb);
lastRequestTime = System.currentTimeMillis();
}