Or, just cover the lens with your hat, open the shutter, then use your hat as the shutter. Just don't touch the camera during the actual exposure. Wind (or earthquakes), as Andreas mentioned, is a different story.