Fixed: due to semaphores, event sending was not asynchronous. Updated event write test. Fixed: event receiver onSuccess was called instead of onError.