Adds fallback logic for when an exception occurs