Fix freezing issue #50
Much more elegant solution for freezing: use exec.Output()