Add exit method.