Yeah thats SDL. Won't let you just close it like that as it's a window created by the dynamic library it's self.