[BUGFIX] Process signals safely in the main thread

One can't do jack in a signal handler on Ruby 2.0