now the senderThread sends the fin so it can send all its data before
the fin.