Don't catch generic Exceptions, only catch what should reasonably be caught (like IOException) and let anything else bubble up and fail-fast.