For anyone who finds this question and wonders how to close the connection in this example, the following method worked for me: engine.dispose()
For anyone who finds this question and wonders how to close the connection in this example, the following method worked for me: engine.dispose()