Connection manager crash fix; Sanitize command input.