updating the mavlink connection class to better handle opening, and closing of connection.