fixed a few dumb pyadio mistakes
fixed a forgotten stream close