prevent server from looping when client leaves