Term: escapegoat
Example: since jim took the job in hawaii his code has been the escapegoat for the security leak on the client's site
Definition: a former employee who gets blamed for everything wrong with a project because the remaining team resents him/her from escaping the mess