try {
assertState(CONNECTED, message);
//physicalConnection.close();
/* should be actually closed, when I can take care of persistent connections etc.
as of now, it is a no-op. */
ClientNotificationManager notifMgr =
((RemoteMBeanServerConnection)mbsc).getNotificationManager();
if (notifMgr != null)
notifMgr.close();
}
catch(Exception e) {
throw new IOException(e.getMessage());
}