Fixed critical error with transaction listener, causing parsing to be misordered.
Fix another problem with tx listeners.
Handle 504 and other odd server errors properly.