Good catch. There should be a try around the synchronous example, and it should call sendCommandError in the case of an exception. Fixed.