Clean up stdout redirection