put server message send attempts into a try