Yes, 30 minutes is the standard for the emergency lighting. When they are depleted the emergency light battery must be replaced.
The GPU cable coming out does not cause a short, it depowers the airplane. With the loss of ground power you would manually have to switch over to APU power. If you're on ground power the APU would not have likely been running so it would have to be started first then connected to power the aircraft.