Fixes #237

Sorry for typo in commit message
This line will never be executed, because ``SystemExit`` will be raised. Please, move it out of the ``with`` block. Thanks.