What are the similarities of breach of contract and frustration of contract?