Add return statements and exception handling

In the function handleEvent added additional return statements what
allows not to perform additional checks. Empty catch statements are
filled. Try/catch blocks are added where necessary.

Change-Id: I6dd13f14d97d7e75e65f56bad211889112b6cef8
arch-specific diff of header

Change-Id: I78e2186dc7e491095201efc2c709f26e8822a076
Fix issue 58135 about _C_LABEL_STRING macro w/o space between literal in C++

Change-Id: Iefc3c090071f3629998515d43907139b07105672