fixed shutdown exception (probably)