Move logging out of the way
Clean up syntax
Quit Phantom instance after each request