jenkins: limit cancellation invokations to 1
The signal handler can be invoked twice:
- once when the user cancels the build, and python receives the initial signal
- once when BuildAborted() is raised, and SIGABRT is sent to python.
Unset the path used by the signal handler to prevent the build from being cancelled twice.