"F02" is a Long Drain error code. This is an indication that you have an obstruction somewhere in the drainage system. In most cases this means there is a clog in the drain pump. If the drain system is clogged or restricted, once the error code is generated, the washer will not complete a cycle until the error is resolved. The following link explains:http://www.fixya.com/support/r615268-f02_error_code_whirlpool_duet_kenmore
Included is a follow-on link that explains how to check the drain pump to clean. You may also have to remove the inlet hose that runs from the bottom of the wash tub to the inlet side of the drain pump. Debris and small articles of clothing can commonly clog in this area as well causing the drain cycle to fail.
NOTE: The "SUD" error code can often occur in conjunction with the "F02" error code. This is due to air being detected in the drainage system, which can occur if the pump is not running, or if you have an obstruction BEFORE the pump. You need to remove the inlet hose from the pump to ensure it is also not blocked. Correct your drainage system fault, and the SUD error should go away.
If you have any questions about this repair, or need additional assistance, please let me know. I hope this helps you.
NOTE: If these preliminary measures do not correct your problem, you may have to replace the drain pump. It does not take much to damage the pump impeller or motor. Since the error code is generated if the drain cycle exceeds 8 minutes, if the pump is damaged and can't pump at the required volume, the error code will continue to appear until the pump is replaced.