Replaced open3 with open4 (https://github.com/ahoward/open4), which does give the exit status when used properly.

Take a look over my commit.