If you have a contract with the company then you have to complete it to get exit permit. After your contract its your right to get exit permit.
Talk with the company and don't mention you got another job. Just tell them that you wanna leave the company for personal or family reason.
All the best..