When using the notty option, close off stdin and stdout once the