Added 'leave' command to session object

I noticed the session object was missing a "leave" function so I added it. Tested with a receiver app and all working.