check power state before stop