TERMINATION AGREEMENT dated as of August 6, 2004 by and between ENCORE CREDIT CORP. and RESIDENTIAL FUNDING CORPORATION