Fix for issue no #280  sometimes startup hangs