adding system.exit
add test for failure
adding thread wait
Merge pull request #7 from ArcBees/brandon_exit

adding system.exit