add delay on module exit