Finish submitLeave