Catch except when serial is closed