I think one `catch (Exception e)` is enough since they do exactly the same and IO exception is a sublcass of Exception.