Fixed samples not properly being shutdown when window is killed on Linux.
Fixed samples not properly being shutdown when window is killed on Linux.

jkuhlmann/gainput,jkuhlmann/gainput,jkuhlmann/gainput,jkuhlmann/gainput