cleanup import
use NSTimer to retry in refresh_connection