Closing input stream when refreshing stub data in AdminPortal