Fix bug where sessionId gets stuck in the "waiting" state
Merge pull request #9 from tlau/master

Fix bug where sessionId gets stuck in the "waiting" state