Fix of a fatal error in EntitiesHandler.

Deleting many sc.close().