use stop events and better test output

Registering STP events makes it easier to find stuck jobs after a
hard shutdown by using the "statuses" command with --before and
grepping for status WRK. Normally stopped jobs will all be STP.