check if there is active transaction before power off