FailureAgent nullpointer fixed