Spotting at 17 weeks

I began spotting at 17 weeks. Has been 2 days now. Very light. Non existent when I'm laying down. Doctor says my cervix is still closed and she heard the heartbeat. I'm still very scared and just want it to stop. Please tell me if this has happened to you and how long I can expect this to continue.Vicky