cleanup after selftest