Trap EXIT not SIGINT so that maintenance mode is unset on any error not just explicit signals.