When stopping the server all client connections are closed. You should ensure that no client is active anymore.