Close input and output streams in expandCGIScript to avoid resource leaks. Issue reported by Coverity Scan. Merged r1654524 from /tomcat/trunk