Introduced default exception error code FAIL and fixed error handler.