In such unfortunate circumstances, you can contact the airline to request a free cancellation or to reschedule your flight in light of the circumstances. You will likely need to provide some form of documentation as proof of the situation such as a death certificate.