CDAP-537: close input streams
Merge pull request #19 from cybervisiontech/CDAP-537

CDAP-537: close input streams