Fix bugs in Timer and begin making DNS retry