spring.main.keep-alive=true will spawn a non-daemon thread which stops if the context is closed Closes gh-37736