cleanup entity fire function