Removed commented code that had to purpose to terminate the app in a
save way.