Add logging for crash troubleshooting.