expose shutdown method.