Sod's law is a name for the axiom that "if something can go wrong, it will", with the further addendum, in British culture, that it will happen at "the worst possible time". This may simply be construed, again in British culture, as "hope for the best, expect the worst".