Close input stream after usage