fix STDIN/STDOUT redirection after restart