jsm: Remove the uart port on errors