Close the input stream when project is loaded