Set the entry point of the error handling routine. If the argument is NULL then the error handling is switched off.