Added barrier before deleting the server.