CDAP-537: close input streams