make handle-error private