Fix crash when aborting and restarting purchase; add logging around purchases