coolio: fix a bug that some connections aren't closed