[#5] Adds shutdown function to level