To stop this happening, add the following line to the [INTERBASE] entry in /etc/odbcinst.ini:
[INTERBASE]
/etc/odbcinst.ini
DontDLClose = 1