add exception handling in using gdbus api