Closed input stream and set to null after use so that associated file
could be deleted.