Maintain previous behavior on closing stdin