A Residence Permit is your licence to stay in the country. it doesnt matter if you are working or not. 

as long as you have a sponsor to renew your RP, you can stay in the country.

 

PS: i'm not a legal practitioner