Finish the aplication