if your RP has not been to stamped into your passport, you can simly leave. Your existing work visa will be cancelled, and new work visa under new company should be issued