Close connections with an stopped ioloop