Fixed taskID saving on exit.
Fixed lint.
Removed debug code.
Merge pull request #183 from angathorion/session-handling

Session Handling