This terminates the background thread. It would probably be a good idea to inform the user here, i.e. print a log message.