Emit message event after message has been decoded

This moves emitting the decoded data out of the try catch block, which avoids errors in the application showing up as "Invalid server message"s.