Logstash 7.9 JDBC- Oracle input - Session closing

We have an scenario where we are connecting to oracle db for getting db stats using JDBC / Logstash. In some cases oracle db connection are not closed after query execution. These session are seen in long running session of oracle. Do we have any parameter in Logstash that will force fully close the connection after a particular interval