MacBook Air shutting down randomly

Shutdown codes 3 and -11 indicate that the power button was held down for an extended period of time and caused a forced shutdown. If you aren't manually holding down the button, one possibility is that there is a short circuit across it. Did the system perhaps experience a liquid spill or mechanical damage recently?