Check whether socket is still open
Don't exit on unexpected messages
Merge pull request #4 from inou/moar-fsm

Check whether socket is still open