change throw to console.log and ignore nohup.out