You can usually negotiate a severance when that happens, since they haven't had time to draw up documentation. Speak to a lawyer.