Error handling using API changes in Imfit. Should be free from those exit() problems.