fix break into error handler in R older than 2.15.1