Properly Close off MySQL Connections