fixed shutdown exception (damn...)