Forgot to close the stream when loading resource files