catch runtime error when call user OnPostHandler and OnTimerHandler