doLeave