Register startup task only once. Fixes issue #16