Stop logs cause panic due to write after close
Merge pull request #38 from smarterclayton/stop_panics_on_logging

Stop logs cause panic due to write after close