remove nrepl and save buffers on buffer switch.