Revert "Fixed panel bug with not invoking endwin() on quit."

This reverts commit 281da5c1843306815fbf3d225730f6bedd5ca249.