Move sending HEARTBEAT code to PeerHandler; Use special request to quit processors.
Some fixes on code and some more failure test cases.
Merge pull request #61 from EasonLiao/failure_cases

Some more failure cases.