Problem: server should only send the message one

Solution: Removed sending the message multiple times. The server quits after the first message was sent.