shutdown for controllers and kernel exception