Given that you're required to be in the gate area 15 minutes prior to scheduled departure for domestic and 30 minutes for international -- leaving early is always possible. I've had many a flight close its doors early -- but usually after all ticketed passengers have been accounted for.