Handle HTTP failure on PTP-login better
Cleaning up