Closing borders isn't going to help if you have thousands of people who have no future and who are looking for revenge out of frustration. This is not to blame anyone, but it's more a matter of fact. Paris has seen many riots in the past years, where hundreds of cars have been destroyed by these people. It's not surprise that you can find some people in that group that are vulnerable or attracted to the tactics of IS.