grab a copy of stdin so other areas can close it