Drop sessionbeforesave eventbus.
Don't delete newlines at end of file if cursor is there.