Merge "Switch shutdownInput / shutdownOutput to using Os.shutdown."