set base handler panic when error