Get notified when the UI freezes