Map to close current buffer