fixed import issues with shutdown function