samba-tool: Catch exceptions at top-level and exit with correct return value