Close streams in JavaRunner