Fix console + add exception to FileAgent