Be more verbose and log errors when something goes wrong.