fixed the bug that stopping server will cause an exception if performance data collector is disabled