Update dependencies, start using log_error_then!() macro for some cases instead of just panicking.

Note that this also adds a new TODO comment