Ensure Activity is released after all event handlers have completed.