Add the mechanism of sleeping for a period time and trying again when association fail