add record and shutdown