Fix test logging
Application now terminates by asking and waiting instead of telling