set the default handler for exception occurring after a timeout.
The function lauched after a timeout should not raise any exception.
That's why the default handler will exit the program.
create n f defines a new timeout with n seconds duration. f is
the function to be called after the timeout.
That function must not raise any exception.