when.catch instead of fail