This is a fix for clean connection crash as:

CLEAN CONNECTION TO ALL FORCE FOR dbname;

Patch was provided by Wang Diancheng.