Sad, but anyone who thinks space flights are safe is deluded.
From this, they will investigate what went wrong, and improve things for the future.
The airline industry is similar. It took (and still takes) many incidents to make it the (relatively) safe industry today.