Clean up flexible grid event listener