As per law before ur rp expire you must exit.
If they are stopping you, you can go labor court , human rights and embassy also. ...before go try with your management softly.
Best of luck.