stop.sh: wait intelligently after kill instead of sleeping 5 seconds

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>