we should really have a RestActionListenerBase or so that does the onFailure() everywhere (maybe open an issue and do it on master first?