Moved event registration

Moved the event registration to before the initial call is made to open
the serial port. This is so all the events are ready to go if we
automatically open the port.