Correctly close native applications.

Bug #529.
mProcess deletion is handled in NativeApplication destructor.
Signed-off-by: Nikolay Nizov <nizovn@gmail.com>