fixed shutdown exception (another try)