A power manager script detects main power off and shutdown after timeout: requires USB powerbank