Use contToExit(1) for safer approach to test exit. Reviewed-by: gadams, amenkov
Add thread filter to stop command. Reviewed-by: sspitsyn, amenkov