Fixed serial open return type bug to handle error