Ensure that detaching from controlling terminals, but allow for redirection to files.