more informed optimization status and error messages, ref #85