Extract the signal handler and zombie clear method to mc_daemond class

1. Extra the signal handler and zombie clear methed from each daemon
class to thier parent class mc_daemon

2. Fix the bug that close_client_sockets() method didn't remove the
socket record from client_sockets array after it close the client
socket.

3. Few minor adjust.