Support stopping by signal