avoid "can't be called from trap context" Ruby 2.0

closes gh-98
3.0.6 pre