Handle pub/sub errors properly.

Updates also the loadtests in order to test the timeouts.