Remove ineffective code
Fix R longjmp handling