added destroy method that stop reading and emits close
test for destroy