Updates callback phase to handle error case