Intellij, just closes the connection that created or kills the thread that created that connection, but this, does not mean that the database server closes the cursor or session,
the process in database server might continue and you must check your database's open cursors or open session to see the query is running or has stoped .