If you are going away for a month I would chuck in a lump of fish (not beef or similar) so that it degrades slowly to feed the bacteria, You will have to clean the filter and do a water change before using the tank again but at least the filter will still be working.
If you are just closing it down until needed then use a liquid fry food to keep the filter running, a few drops a day will stop it from dieing.