refactored to add custom exception handler to return NULL in case nothing is configured
custom exception handler processing is modifed to return NULL in case configuration is not available