Applicationmodel dtor