Prevent NPE on disable when the external database is not enabled

Checks if extConn is null before attempting to close the connection.