As per law the company has to pay for the ticket to the base country where the employee was hired after the termination of the contract.