Backend process API: add an error callback