The widget uses the same command ("sudo /etc/init.d/ssh start"). What about stopping the server by short pressing (that's "sudo /etc/init.d/ssh stop") and long pressing ("sudo killall sshd") the button? Does that work for you?