Fixed bug in output handling so you can see the output on failures