stopListening after close

Fixes #761

ping @jmeas