don't close STDIN in beginProces() (fixes #4)
pass the return code to the exception (fixes #5)
unset the descriptor element when closing a resource
close all open pipes before closing the process (fixes #6)
Merge pull request #7 from Jalle19/issue-fixes

Issue fixes