fix shutdown exception...