closes fileinputstream