Use a delay shutdown request to fix shutdown UI bug