closing System.in inputs