your property is a part of the grid so if the grid is broken you can't(shouldn't because it's dangerous) put electricity into it.
Thus you must be able to safely connecting and disconnecting from a grid no matter its state, this is the complicated part.
https://sv.wikipedia.org/wiki/%C3%96drift