Handle reopen events.
Merge pull request #24 from tanB/reopen-feature

Handle reopen events. Thanks!