[trap] signal trap hack for ruby 2.0