We should use set_domain_offline(domain) function instead of just set staus to offlin...