Update flask example with error_handler usage
Call error_handler if error occurs when invoking "load"