stop threads

call stop from listener