emit error when public methods have no callback.