close phantom on completion of tests