(x_delete_display): Move xim_close_dpy call to x_delete_terminal.