Put NotSerializableException after File / FileOutputStream