OPTIMIZATION: avoid AtomicInteger increment and set in special case of one single handler registered
upgrade to bonaparte 1.7.2