Dump logs on failure.