catching connection closed exceptions on blacklist function