Merge pull request #3 from yifan-gu/master

We need to connect to the server each time we receive a request from broswer
add server.close