app: implement cleanups for reloads