LSMPacket's constructor wouldn't set the its own sessionId attribute correctly resulting in always constructing json with sessionId = 0.
Removed the stateObject class.
Removed annoying "Are you sure you want to quit?" message box.