Added handling for dirty (unsaved) buffers.