system-test: move nginx killing earlier so we can clear TEST_TMP