Calling the nohup on the updating process with the extra pi-upgrade script seems to solve the problem of killing the aptitude