it shrieked as flesh melted from bone , and flailed at the door frame for a few moments in pain and hate , before it withdrew rapidly outside , to disappear with a clap of thunder and a wink of darkness .