Fix R longjmp handling