Add shutdown method.