Implement stopping a server