Remove closefunc