Hello! You might not be reaching the closet fast enough then. Once you hear the sound of the door opening, it's too late and you can't hide in the closet anymore. Have you been pressing shift to run and headed straight to the closet?
I haven't so that is probably the reason I haven't been able to hide. Thanks a lot!