rescue no-tty error

Resolves #81