Use Promise<void> instead of Promise<undefined>.

Fixes issue #53.

@marcoscaceres, what do you think? Does that matches the conclusion of the discussions?