test/run.sh: Kill subprocesses when test exits

Move trap call so that it is actually executed, and kill any
leftover subprocesses so the test can complete.
x1-alldewm: Fix