Background thread bugfix

Fixed an issue where the background processing thread would not close
when the user closed the UI.

Also, modified the main JavaFX Stage object so that the main window
cannot be resized.