The EU's flawed policy between wars and migration