fix shutdown lockup