Fix memory leaks and remove endpoint context
Reject conn request from self

Initially we ignored it and we need to reject it.
Silence compiler warning when freeing uri