Exit with either success or failure. Print some logs.