Added logging of uv_last_error where it may be appropriate.