added quit method when finalizin tests to properly exit process