Bugfix/correct clock backwards

Minimise the impact of system clock moving backwards by using the last detected time to calculate the queue polling timeout