Updates deleted event handler to clear progress bar properly.