Close socket when exit server
Add recieve error