log when exception detected in __exit__ for context managers (otherwise it will never be logged)
fix typos from stderr vs std_err for command results
Merge pull request #155 from coryb/testing

fix typos and log exceptions in __exit__