bug fixes, terminate process on exit, and display issue in ubuntu