Entry script cleanup.