Restore the default handler if there are no custom traps anymore

This unbreaks stuff like ctrl+c after the last SIGINT trap has been removed.