What happens if a job closes after I apply?
Answer: Your application stays with the employer. Closing a job only stops new applications; the employer can still review and contact the people who already applied.
Your application stays in Dashboard → Applications.
The status may stay the same for a while as the employer reviews applications.
If the employer doesn't move forward, your status may change to Rejected, or may not change at all.
Keep applying to other jobs while you wait. See: Why haven't I heard back from an employer?
Related: What does each application status mean? · Why did a saved job disappear?