Change exception handling so that the lcad error messages are printed in the correct order.