This dream indicates that your subconscious mind is trying to alert you that, you should stop hiding away - because, at the end of the day, you will hurt yourself in the process.
Failing in some important goals could also be the reason behind your dream.