Solving Ruby2.0 issue related to signaling

https://bugs.ruby-lang.org/issues/7917