disposing set members
remove debug print()'s and repeated code
free receive buffers when closing apps
discard unsent packets