Add a delay between connection attempts.

By adding a delay and continually attempting to reconnect to the queue
server we add a bit of smoothness to the application's runtime.