add trap handler to start-test-stop
Merge pull request #1204 from mind04/trap

add trap handler to start-test-stop