I have the same problem with my DD. I just sit in her room playing on the computer which I am doing write now lol.. I also play her this lullaby I found on youtube and it truly seems to calm her down

My Ds was a shocker for getting out of bed (ds1) eventually we had to shut the door but he hated that so we put a baby gate up and that did the trick after a few weeks of him crying at the gate..

I wish i could be more helpful