Fix issue with Netty thread exception whilst starting during dev mode - based on pull request from pvillega