Fixed publish confirm timeouts by handling async correctly