If you get hit when going down+jump, you could get hit to outside the castle wall, and will need to relog.