Bug fix for a crash which occurs if you start a new session after closing one. Also added some extra debug messages to indicate when the StartSession and CloseSession methods have finished.