Revert "return Task instead of void for OnOpen, OnMessageReceived, OnClose"

This reverts commit 2fc72cd0085db9389bd7ccdaaf4b16c21585b34a.