Updated execute process to close fds, map fds in use to stdin and stdout and execute program using execvp