[ruby-core:112846] [Ruby master Bug#19473] can't be called from trap context (ThreadError) is too limiting