fun stop(): Unit
Overridden to give the background threads a chance to finish properly when the user attempts to close the application