Add some tests, start refactor
Add crash tests
Fix restart
Add test for crash listening
Handle forcefully kill
Test shutdown