Don't crash when detached from terminal

Fixes #1
Don't use std logger