If the trainee abandons the placement without legitimate reason or is dismissed for gross misconduct, the remuneration received by the trainee and the remuneration that has been reimbursed to the employer as well as, where applicable, the sums paid in respect of social security contributions relating to this remuneration are repaid in full to the State or, as the case may be, to the region.