If you do not close() the connection, it stays until script finishes.
It's a little resource consuming, but in case you do not write loads-of-kb-long scripts and do not open zillions of connections in a script, don't bother about it. Most people, I believe, never use it and feel OK.