safer signal handling for ruby 1.9
ruby signal handler can fire again during execution