Withdraw from a contract