Start and Stop test server from the rake file.

Now all the lost connections will be closed and ended properly.