closing std in/out/err