modify bin and extended_bin to terminate the VM gracefully