Fixes a bug which was creating duplicate idle handlers.

Each re-launch would add another idle handler. This fixes the bug
by only adding the handler during the first runtime init.