cleanup logging and show logs in interactive mode

see issue #413 for more info