Properly close db connection in django powered cronjobs

This is required in 1.4, whereas 1.2 properly closed the
connection on it's own.