fix the bug #3 with the PowerSpy shutdown