Fix exception handling, warn needs a string.
Do not hide unexpected exceptions during debugging.