Be more explicit when optimisation fails