Handles the specified signals.
list of signals to handle
SignalErrnoException if setting up the signal fails
See Implementation
Handles the specified signals.