Fixed shutdown error closes #2085
Merge pull request #2086 from getlantern/2085

Fixed shutdown error closes #2085