Change behavior of changeExitBlock function to replace all instances of exit block