Move the event handler to after the serial port is open

This prevents a race condition where the library returns check sum mismatch errors on networks with multiple nodes.