Ensure all event handlers are removed even if there is an error removing one of them