Added auto-closing of signal stream