Catch exceptions in command runner