Insomnia is a significant risk factor for depression onset , can result in more disabling depressive illness , and is a common residual symptom following treatment cessation that can increase the risk of relapse .