logging information on fail with exit