Added normal buffer closing when on last buffer.