If you can, seek shelter in a place where you are protected from the weather, but make sure that the rock and soil does not land on you when aftershocks occur.