remove regex libs from CMAKE files
Suppress error when shutting down a closed connection