Call a callback function, catch an error if it throws, and log the error without rethrowing.
Function to call.
Call a callback function, catch an error if it throws, and log the error without rethrowing.