Try except serial communication