Added islanding functions to emergency_control.