destroy connections on shutdown