The moment you leave, you are no longer on a H1 visa. Would recommend having the employer talk with their accountant to see how to pay you. Many companies do this very routinely.