Better serial error handling