fixed error handling in #safe_eval (i.e. in plugin loading)