main: Extend RegisterSignalHandler instead.