always print output to stdout, fix shutdown