Use onajax handler even though it's for an error.