dump logs on failure of mock