Smart server not releasing server socket when stopping