Please verify if needed or no need? Thanks.

In principle, if the company will not give an exit permit once your RP is cancel, how to prove to the immigration officer that you don't have any liability from your company?