Added exception handling logging for bugsense