Fix a bug that message pusher raises an exception at shutdown

We should get socket path before close the UNIX domain socket server.