Implement simple signal handler for common error signals.