Fixed issue with HostApp not fully exiting in Linux.