Exit process only after capturing stdout and stderr