finish application