Properly closing InputStream in ScenarioParser.