Fast protected shut down


I use the BMC1 module of the BBB Board at my own Hardware. Some times it can be that the power Switchs off very fast (lost of power supply). I use Debian Linux at my board.

Which option exist to shut down the board very fast and protected. I damaged the Board as I lost the power supply.

Best regards