Add error handler for the activation process