Prevent terminal freezing