fix login crashing when session state is closed
Merge pull request #72 from joshuastray/fb

fix login crashing when session state is closed