Exit on q. Implemented reboot and debug.
Make compiler happy.
Revert "Timer programming: take care that delta might be 0."

This reverts commit f7c1895f7f4cc9faa54858a8809677e6f7110689, because it caused an endless loop.
Hopefully fixed timeout handling.
Fixed startup race condition.