Call the callback method in case of an exception