updated changes to work with ruby 2.0 (must not use custom signals)