add delay to hangup function