Ensure no stdout output is lost

Fix for issue #120