'Company paid the ticket when they needed' has nothing to do with your final departure. Depends on the clause agreed by you in the contract.