Properly report errors raised by popen

Closes #75