Proper cleanup. Removed messagebox.