What happens in the event of a power failure?

By design the system switches off immediately and automatically. This is as per requirements and for safety. As the system is a grid-tied system, it required a grid to opperate.