Remove the exit status check from the logging's setup code and allow it to be handled by the final process monitoring loop. This adds slight overhead of unnecessarily setting up ebuild when tee is broken but simplifies the code. Closing of the read end of the pipe is also moved to just after tee has been spawned so that it is not incorrectly left open in the ebuild process.