* fix memory leak and crashes due to control protocol module information not being cleaned up properly when closing a session. * revision 1118