Power failure detection and orderly shutdown via Raspberry Pi