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