Correctly close native applications.

Bug #529.
mProcess deletion is handled in NativeApplication destructor.
Signed-off-by: Nikolay Nizov <nizovn@gmail.com>
Merge pull request #1 from nizovn/bug529

Correctly close native applications.