Added exception parameter to fail callback