Update server.js

fix mem leak issue. maybe because of client not close.