Add commons-io
resolve crash in login, and prevent OOM on file download
Move catch
fix commenting