Handle some expected exceptions
Include script name in log messages