Added a semi-developed test for failing connections.
Added a new plan type to delay closing on failures.
Cleaned up fail test so that handles connection reset by peer correctly.