tcp now tries resending a msg 5 times if con.write fails. If the connection does not exitst, we try to connect 10 times, and resend 5. If this fails nothing happends. Maybe we need to notify about a faild msg send.