Trying to develop a comprehensive entry and exit control system to fight illegal immigration and discourage terrorism has in some ways '' been a mission impossible , '' said Rey Koslowski , an associate professor of political science who is director of the program on border control and homeland security at the State University of New York at Albany . ''