clear static variables in SparkBase.stop

This modification is to make junit tests finish correctly. Otherwise, after GenericSecureIntegrationTest sets keystoreFile to test secure, all the left non-secure tests would fail.