Enhanced to log file descriptr mapping.
Fixed the server to wait client's exit.