[fix] Don't trigger, but emit.

Make sure that our connection is closed when we quit.