bugfix - don't wait for Enter/Ctrl-C if not interactive.