cleanup application file event handler