When a completed application gets removed from `completedApps` we should also remove the UI handlers so that they get garbage collected. Checkout the lines relating to `RETAINED_APPLICATIONS` inside of `removeApplication`. Otherwise, over time, this will cause the master to run out of memory because of all the UI state.