Try to exit sbt when component closed.