Delete session on activity. Misc bug fixes.