Safe exit implemented, now starts test phase