Ask an Immigration Solicitor. Get an Answer ASAP.
You cannot apply and leave the country. Once you have attended the ceremony, you will recieve a naturalisation certificate. Obtaining a passport can be done within a week. But the whole process can take up to 2 months