Cast two objects to string to avoid log_encode complaining when in debug mode.
Handle also unhandled exceptions when starting the director.