Call correct quit function.
Use special powers quit in unit tests.