using timers to delay connect and close