You could potentially catch Throwable here instead of Exception to try to protect against a larger set of errors, as long as it's always safe to ignore these issues for this particular use case.