Revert "add missing try block to ui"

This reverts commit 0a6f17252faa93bd7ee09fae4fb70d264210324a.
Add custom exception for peer not found