cleaning up _initStdin