At 5:30 p.m. on Tuesday, California-based solar and battery provider Sunrun received an urgent email from Puerto Rico.