finish the server