[binder.py] added try-except block