Fixed a crash in the :mod:`sqlite3` module when
:meth:`~sqlite3.Connection.close` is called on the connection during an
aggregate callback (e.g., in the step method). The interpreter now raises
:exc:`~sqlite3.ProgrammingError` instead of crashing with a segmentation
fault.