The application is taking a long time to close.

how can I fix this permanently? it always asks me to force it closed and I do. but how to stop it??