added stuff to catch and report exception (yet no networking layer)