Move inside the try so it doesn't fail to run when there's no PID file.
Change import URLs to https