Shutdown applications started in test suite
Rewrite test slightly to debug failure on travis