This lifts a BufAction to an Action which
performs the BufAction on the buffer referred to by the BufRef
If the buffer referred to no longer exists this returns: Nothing.
This signals to the editor that you'd like to shutdown. The current events
will finish processing, then the onExit event will be dispatched,
then the editor will exit.